home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7429 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.2 KB  |  50 lines

  1. Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
  2. Path: Utrecht.NL.net!news
  3. From: Franz Korntner <fkorntne@bazis.nl>
  4. Subject: Re: Access carry flag from C
  5. X-Nntp-Posting-Host: bastion1.bazis.nl
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <312D8414.167E@bazis.nl>
  8. Sender: news@inter.NL.net (News at newsutr)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: NLnet
  11. References: <Dn1C9z.DGv.0.net@indra.com> <1996Feb1922.17.19.879@koobera.math.uic.edu>
  12.         <31298D20.41C6@bazis.nl> <danpop.824859220@rscernix>
  13.         <312AFACE.41C6@bazis.nl> <TANMOY.96Feb21081640@qcd.lanl.gov>
  14. Mime-Version: 1.0
  15. Date: Fri, 23 Feb 1996 09:08:36 GMT
  16. X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)
  17.  
  18. Tanmoy Bhattacharya wrote:
  19. > In article <312AFACE.41C6@bazis.nl> Franz Korntner <fkorntne@bazis.nl>
  20. > writes:
  21. > <snip>
  22. >    32 bit numbers. According to the (X3J11 / ANSI) standard, the constant
  23. >    INT_MAX (and in this case most limits in limits.h) denotes the minimal
  24. >    limit. It is possible that the physical limit is much higher (or lower
  25. >    in the case of negative values). As I am only interested in the physical
  26. >    limit, the value INT_MAX has no meaning. Only the compiler is fully aware
  27. >    of these limits (and not a header file!) and what I really miss in the
  28. >    standard and/or implementation is a inline function 'maxlimitof(int)',
  29. >    analogical to 'sizeof(int)'.
  30. > Please quote the standard. I find no discussion of this in my copy;
  31. > and I suspect it is incorrect.
  32.  
  33. I only have a copy of the Rationale at this moment, and it is also mentioned
  34. on page 17, Environmental limits.
  35.  
  36. 2.2.4.2.1 Sizes of integral types <limits.h>. Such a large body of C code
  37. has been developed for the 8-bit byte machines that the integer sizes in
  38. such environments must be considered normative. The prescribed limits are
  39. minima; an implementation on a machine with 9-bit bytes can be conforming,
  40. as can an implementation that defines int to be the same width as long.
  41. page 17.
  42.  
  43. -- 
  44. +-----------------------------------------------------------------------+
  45. | Franz Korntner at BAZIS, dept. System Development, Leiden, Netherlands|
  46. | E-mail: fkorntne@hiscom.nl                                            |
  47. +-----------------------------------------------------------------------+
  48.